.chat-contacts {
  height: 100%;
  /* background-color: aliceblue; */
  display: flex;
  flex-direction: column;
}

/* 搜索区 */
.contacts-search {
  display: flex;
  flex-direction: row;
  padding: 14px 14px 14px 8px;
}

.contacts-search-container {
  margin-right: 12px;
}

/* 置顶区 */
.contacts-top {
  display: grid;
  flex-wrap: wrap;
  grid-gap: 0 14px;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  grid-gap: 0 14px;
  grid-template-columns: repeat(auto-fill, 40px);
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 12px;
  box-sizing: border-box;
  box-shadow: none;
  transition: all 0.2s ease;
}

.chat-contacts .contacts-top-shadow {
  box-shadow: 0 2px 6px 0 rgb(31 35 41 / 5%);
}

/* 列表区 */
.contacts-list {
  flex: 1;
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden overlay;
  transform: translateY(0px);
  contain: strict;
}
/* 滚动条样式 */
/* 外层轨道 */
/* .scroller::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: #ffffff;
} */

/* 滚动条整体部分 */
/* .scroller::-webkit-scrollbar {
  width: 7px;
  background-color: #ffffff;
} */
/* 滚动的滑块 */
/* .scroller::-webkit-scrollbar-thumb {
  border-radius:  4px;
  transition: all 1s;
  background-color: rgba(100, 106, 115, 0.3);
  border-bottom: none;
  border-top: none;
} */

.scrolling::-webkit-scrollbar-thumb {
  background-color: rgba(100, 106, 115, 0.3);
}

.contacts-list-item {
  width: 100%;
  height: 60px;
  transition: height 0.3s ease;
  /* position: absolute; */
  /* transform: translate(0px, 24px); */
}

.contacts-swipe-container {
  position: relative;
}

.contacts-card {
  transition: background-color 0.2s ease-in;
  display: flex;
  align-items: center;
  position: relative;
  height: 60px;
  padding: 10px 14px;
  box-sizing: border-box;
  cursor: pointer;
}

.contacts-card-active {
  position: relative;
  background-color: #eff0f1;
}

.contacts-card:hover {
  background-color: #dee0e3;
}

.contacts-card-avatar {
  width: 32px;
  height: 32px;
  line-height: 32px;
  position: relative;
}

.contacts-card-main {
  flex: 1;
  margin-left: 10px;
  overflow: hidden;
  height: 100%;
}

.contacts-card-header {
  display: flex;
  align-items: center;
}

.contacts-card-name {
  display: flex;
  flex: 1;
  color: #1f2329;
  font-size: 14px;
  line-height: 20px;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.2s ease-in;
}

.contacts-card-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.contacts-card-name-tag {
  margin-left: 6px;
}

.contacts-card-header-time {
  color: #8f959e;
  font-size: 12px;
  margin-left: 10px;
  transition: opacity 0.2s ease-in;
}

.contacts-message-preview-container {
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: 18px;
  color: #8f959e;
  overflow: hidden;
}

.contacts-message-preview {
  flex: 1;
  text-align: start;
  margin-right: 20px;
  white-space: nowrap;
  overflow: hidden;
}

.contacts-message-preview-overflow {
  text-overflow: ellipsis;
}

.contacts-message-preview-content {
}

.contacts-card-button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-size: 16px;
  transition: opacity 0.2s ease-in;
  cursor: pointer;
  opacity: 0;
}

.contacts-card-button:hover {
  color: #23c343;
}

.contacts-card:hover .contacts-card-button {
  opacity: 1;
}
.contacts-card:hover .contacts-card-header-time {
  opacity: 0;
}

::-webkit-scrollbar,
::-webkit-scrollbar-thumb {
  background: transparent;
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  transition: all 1s;
  border-bottom: none;
  border-top: none;
}

.contacts-list-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
}

.contacts-list-header-text {
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  color: #1f2329;
}

.contacts-list-header:hover {
  color: #5582f3;
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(180deg);
  }
}

/* 左右分割线 */
.chat-main .arco-resizebox-trigger-vertical .arco-resizebox-trigger-icon-wrapper {
  width: 1px;
}

.chat-main .arco-resizebox-trigger-vertical .arco-resizebox-trigger-icon-wrapper .arco-resizebox-trigger-icon {
  display: none;
}

/* 聊天右边部分 */
.chat-right {
}

/* 聊天窗口头部 */
.chat-window-header {
  padding: 0 20px;
  height: 68px;
  border-bottom: 1px solid #dee0e3;
}
.chat-window-haeder-main {
  display: flex;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}
/* 聊天窗口左边 */
.chat-window-haeder-left {
  display: flex;
  align-items: center;
  flex: 1;
  width: 0;
  height: 100%;
}
.chat-window-header-avatar {
  position: relative;
  cursor: pointer;
}
.chat-window-header-title {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  padding-left: 12px;
  margin-right: 32px;
  overflow: hidden;
  font-size: 16px;
}

.chat-window-group-name,
.chat-window-title-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-window-title-name {
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #1f2329;
  height: 20px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  cursor: default;
}
.chat-window-title-info {
  display: flex;
  align-items: center;
  height: 16px;
  font-size: 12px;
  line-height: 16px;
  color: #8f959e;
}
.chat-window-title-info-desc {
  max-width: 100%;
  cursor: pointer;
}
.chat-window-title-info-desc .button-hover-box {
  max-width: 100%;
  display: flex;
  align-items: center;
}
.button-hover-box {
  width: max-content;
  position: relative;
}
.button-hover-mask {
  position: absolute;
  left: -3px;
  border-radius: 4px;
  pointer-events: none;
}

.chat-window-status-desc {
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.chatMessages {
  /* padding-bottom: 5px; */
}
/* 消息部分 */
.message-list {
  min-width: 360px;
  height: 100%;
  /* padding-bottom: 5px; */
  box-sizing: border-box;
}

/* .message-list .scroller_content {
  padding-bottom: 10px;
} */

/* 底部输入框 */
.chat-right .arco-layout-footer {
  text-align: start;
  height: auto;
  padding: 5px 20px 20px 20px;
  border-top: 1px solid #dee0e3;
}

/* 菜单 */
.chat-contacts-menu {
  /* cursor: pointer; */
}
/* 菜单项 */
.chat-contacts-menu-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 14px 10px 8px;
}
.chat-contacts-menu-item-title {
  padding-left: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #1d2129;
}

/* .chat-contacts-menu-item:hover {
  background-color: rgba(204, 205, 206, 0.3);
} */

.chat-contacts-collapse .arco-collapse-item-header {
  border-bottom: none;
}

.chat-contacts-collapse .arco-collapse-item-content {
  background: none;
}

.list-actions-icon {
  color: #165dff;
  font-size: 14px;
}
